package com.neusoft.movie.v_movies.service;

import com.neusoft.movie.v_movies.activity.EnterActActivity;
import com.neusoft.movie.v_movies.javabean.AboutmeBean;
import com.neusoft.movie.v_movies.javabean.ActivityBean;
import com.neusoft.movie.v_movies.javabean.ArticlesBean;
import com.neusoft.movie.v_movies.javabean.EnterBean;
import com.neusoft.movie.v_movies.javabean.MoviesBean;
import com.neusoft.movie.v_movies.javabean.ResultBean;
import com.neusoft.movie.v_movies.javabean.UsersBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2018/1/1.
 */

public interface UsersService {
    /*登录*/
    @GET("User/getUserLogin")
    Call<UsersBean> getUserLogin(
            @Query("u_phone") String u_phone,
            @Query("u_pwd") String u_pwd
    );

    /*注册*/
    @GET("User/getUserRegister")
    Call<ResultBean> getUserRegister(
            @Query("u_name") String u_name,
            @Query("u_phone") String u_phone,
            @Query("u_pwd") String u_pwd,
            @Query("u_email") String u_email,
            @Query("u_address") String u_address,
            @Query("u_personal") String u_personal
    );

    /*查看个人信息*/
    @GET("User/getUserInfo")
    Call<UsersBean> getUserInfo(
            @Query("u_id") int u_id
    );

    /*查看个人的发帖信息*/
    @GET("User/getMyArticleslist")
    Call<List<ArticlesBean>> getMyArticleslist(
            @Query("u_id") int u_id
    );


    /*修改个人信息*/
    @GET("User/updateuser")
    Call<ResultBean> updateuser(
            @Query("u_id") int u_id,
            @Query("u_name") String u_name,
            @Query("u_phone") String u_phone,
            @Query("u_email") String u_email,
            @Query("u_address") String u_address,
            @Query("u_pwd") String u_pwd
    );

    /*修改个人签名*/
    @GET("User/updateuserpersonal")
    Call<ResultBean> updateuserpersonal(
            @Query("u_id") int u_id,
            @Query("u_personal") String u_personal
    );


    /*发表反馈*/
    @GET("User/addfeedback")
    Call<ResultBean> addfeedback(
            @Query("u_id") int u_id,
            @Query("f_info") String f_info
    );

    /*查看关于我APP*/
    @GET("User/aboutme")
    Call<AboutmeBean> aboutme();


    /*收藏*/
    @GET("Collect/addcollect")
    Call<ResultBean> addcollect(
            @Query("u_id") int u_id,
            @Query("collect_id") int collect_id,
            @Query("collect_flag") int collect_flag
    );

    /*收藏作者*/
    @GET("Collect/addcollect")
    Call<ResultBean> addcollectauthor(
            @Query("u_id") int u_id,
            @Query("collect_id") int collect_id,
            @Query("collect_flag") int collect_flag
    );


    /*评论*/
    @GET("Comments/addcomments")
    Call<ResultBean> addcomments(
            @Query("u_id") int u_id,
            @Query("comment_id") int collect_id,
            @Query("comment_flag") int collect_flag,
            @Query("com_content") String com_content
    );

    /*我收藏的电影列表*/
    @GET("Collect/mycollect")
    Call<List<MoviesBean>> mycolmovies(
            @Query("u_id") int u_id,
            @Query("collect_flag") int collect_flag
    );

    /*我收藏的文章列表*/
    @GET("Collect/mycollect")
    Call<List<ArticlesBean>> mycolart(
            @Query("u_id") int u_id,
            @Query("collect_flag") int collect_flag
    );

    /*我收藏的作者列表*/
    @GET("Collect/mycollect")
    Call<List<UsersBean>> mycolusers(
            @Query("u_id") int u_id,
            @Query("collect_flag") int collect_flag
    );

    /*我报名成功的活动列表*/
    @GET("User/getMyLuckyActOrderlist")
    Call<List<EnterBean>> getMyLuckyActOrderlist(
            @Query("u_id") int u_id
    );


    /*我报名的活动列表*/
    @GET("User/getMyActOrderlist")
    Call<List<EnterBean>> getMyActOrderlist(
            @Query("u_id") int u_id
    );

    /*我报名的活动详情*/
    @GET("User/getMyActOrderdetail")
    Call<EnterBean> getMyActOrderdetail(
            @Query("u_id") int u_id,
            @Query("act_id") int act_id
    );

}
